package edu.udlap.spring2008.is300.finalexam.app.mvc.controller;

import edu.udlap.spring2008.is300.finalexam.framework.mvc.view.ViewComponent;

/**
 *
 * @author Ruslán Ledesma Garza
 */
class AppControllerSlideModeState extends AppControllerState
{
    
    public AppControllerSlideModeState(AppController controller)
    {
        super(controller);
    }
    
    @Override
    public void setGridMode()
    {
        ViewComponent view = controller_.getView();
        
        if(view != null)
            view.gridMode();
        
        if(controller_ != null)
            controller_.setState(new AppControllerGridModeState(controller_));
    }

    @Override
    public void setSlideMode()
    {
        ///do nothing...
    }

    @Override
    public void toggleGridSlideMode()
    {
        setGridMode();
    }

}
